﻿using BielskoNoca.DAL.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Web;

namespace BielskoNoca.DAL.Concrete
{
    public class EFContext : DbContext
    {
        public DbSet<Runner> Runners { get; set; }
        public DbSet<Contest> Contests { get; set; }

        public EFContext()
            : base(@"BielskoNocaDataEntities")
            { }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
          //  base.OnModelCreating(modelBuilder);
        }
    }
}